From 00a59be5e1cbedb081687fb602744bd3afa492dc Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Sat, 26 Feb 2011 12:51:35 +0000 Subject: [PATCH] Follow-up r82845: fix $wgScriptPath detection. --- includes/installer/Installer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/installer/Installer.php b/includes/installer/Installer.php index af21572d69..013ce6c5c0 100644 --- a/includes/installer/Installer.php +++ b/includes/installer/Installer.php @@ -837,7 +837,7 @@ abstract class Installer { return false; } - $uri = preg_replace( '{^(.*)/config.*$}', '$1', $path ); + $uri = preg_replace( '{^(.*)/(mw-)?config.*$}', '$1', $path ); $this->setVar( 'wgScriptPath', $uri ); } -- 2.20.1